import Vue from 'vue'
import Router from 'vue-router'
import Home from './views/Home.vue'
import About from './views/About.vue'
import TranslateIndex from './views/TranslateIndex.vue'
import todolistindex from './views/todolistindex.vue'
import Blogindex from './views/Blogindex.vue'
import AddBlog from './components/AddBlog.vue'
import SingleBlog from './components/SingleBlog.vue'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home
    },
    {
      path: '/about',
      name: 'about',
      component: About
    },
		{
			path: '/fanyi',
			name: 'fanyi',
			component: TranslateIndex
		},
		{
			path: '/todolist',
			name: 'todolist',
			component: todolistindex
		},
		{
			path: '/blog1',
			name: 'blog1',
			component: Blogindex
		},
		{
			path: '/addblog',
			name: 'addblog',
			component: AddBlog
		},
		{
			path: '/blogArticle/:id',
			name: 'singleblog',
			component: SingleBlog
		},
  ],
	mode:"history"
})
